# print(json.dumps(yaml.safe_load(f), indent=2, ensure_ascii=False))
import json

import yaml

with open("object_07.yaml", "r", encoding="utf-8") as f:
    data = yaml.safe_load(f)
    print(data)
# with open("object_07.json", "w", encoding="utf-8") as f:
#     json.dump(data, f, indent=4)
with open("demo.yml", mode="at", encoding='utf8') as f:
    yaml.safe_dump(data, f, encoding='utf8', allow_unicode=True)

# with open("object_07_YamlDemo.yaml", mode='r', encoding="utf8") as f:
#     # print(f.read())
#     print(yaml.safe_load(f))
